<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header">Thêm tài khoản</h1>
	</div>
	<!-- /.col-lg-12 -->
	
</div>

<!-- /.row -->

<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-8">
                        <?php echo form_open();?>
                            <div class="form-group">
                                <label>Tên đăng nhập</label>
                                <input class="form-control" type="text" name="username" value="<?php echo $this->input->post('username')?>" placeholder="Tên đăng nhập"/>
                            </div>
                            <div class="form-group">
                                <label>Mật khẩu</label>
                                <input class="form-control" type="password" name="password" value="<?php echo $this->input->post('password')?>" placeholder="Nhập mật khẩu"/>
                            </div>
                            <div class="form-group">
                                <label>Tên đầy đủ</label>
                                <input class="form-control" type="text" name="fullname" value="<?php echo $this->input->post('fullname')?>" placeholder="Tên đầy đủ"/>
                            </div>
                            <div class="form-group">
                                <label>Tên hiển thị</label>
                                <input class="form-control" type="text" name="display_name" value="<?php echo $this->input->post('display_name')?>" placeholder="Tên hiển thị"/>
                            </div>
                            <div class="form-group">
                                <label>Ngày sinh</label>
                                <input class="form-control" type="text" id="dateofbirth" name="dateofbirth" value="<?php echo $this->input->post('dateofbirth')?>" placeholder="Ngày sinh"/>
                            </div>
                            <div class="form-group">
                                <label>Email</label>
                                <input class="form-control" type="email" name="email" value="<?php echo $this->input->post('email')?>" placeholder="Địa chỉ email"/>
                            </div>
                            <div class="form-group">
                                <label>Số điện thoại</label>
                                <input class="form-control" type="text" name="mobile" value="<?php echo $this->input->post('mobile')?>" placeholder="Số điện thoại"/>
                            </div>
                            <div class="form-group">
                                <label>Phân quyền</label>
                                <?php $s_arr = array(
                                        '1' => 'Quản lý',  
                                        '2' => 'Nhân viên'); 
                                echo $fview->selectOption($s_arr, $this->input->post('level'), 'form-control level', 'level');?> 
                            </div>
                            <button type="submit" class="btn btn-outline btn-primary">Tạo</button>
                            <a href="<?php echo $baseurl?>manager-user.html" class="btn btn-outline btn-default">Hủy</a>
                        </form>
                    </div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
            </div>
            <!-- /.panel-body -->
        </div>
	</div>
	<!-- /.col-lg-12 -->
	
</div>

<!-- /.row -->

<script type="text/javascript"> 
  $( document ).ready(function() {
    $( "#dateofbirth" ).datepicker({ dateFormat: 'dd/mm/yy' });
  });
</script>